package com.heatup.apt.common.dao;

import com.baomidou.mybatisplus.mapper.AutoMapper;
import com.heatup.apt.model.coach.CoachBriefResultModel;
import com.heatup.apt.model.order.OrderCourseCoach;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 *
 * OrderCourseCoach 表数据库控制层接口
 *
 */
@Component
public interface OrderCourseCoachMapper extends AutoMapper<OrderCourseCoach> {

    /**
     *@Author: timo
     *@Date: 2018/3/26 18:51
     *@Description:
     * 查询订单课程教练详情
     *
     */
    List<OrderCourseCoach> queryOrderCourseCoachByOrderId(Integer orderId);

    /**
     *@Author: timo
     *@Date: 2018/3/28 16:57
     *@Description:
     * 根据订单Id查询教练团队
     *
     */
    List<CoachBriefResultModel> queryCoachTeamByOrderId(@Param("orderId") Integer orderId, @Param("mobile") String mobile);
}